<?php require_once('header.php');?>
<link href="<?php echo base_url();?>sknimg/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<?php if(!$isError){?>
$(document).ready(function(){
		$("#valForm").validate({
			rules: {
			username: {
				required: true,
				minlength: 6,
				remote :   {
					url: "<?php echo base_url()?>engine/register/usernameChecker",
		        	type: "post",
		        	data: {
		          		username: function() {
		            		return $("#username").val();
		          		}
		        	}
				}
						
			},
			password: {
				required: true,
				minlength: 6
			},
			confirmpassword: {
				required: true,
				minlength: 6,
				equalTo: "#password"
			},
			agree: "required"
		},
		messages: {
			username: {
				required: "<p style='padding:5px;color:red;font-size:11px'>Masukkan Username</p>",
				minlength: "<p style='padding:5px;color:red;font-size:11px'>Username minimal 6 karakter</p>",
				remote : "<p style='padding:5px;color:red;font-size:11px'>Maaf Username Sudah Diambil oleh pengguna lain</p>"
			},
			password: {
				required: "<p style='padding:5px;color:red;font-size:11px'>Masukkan Password</p>",
				minlength: "<p style='padding:5px;color:red;font-size:11px'>Password Minimal 6 karakter</p>"
			},
			confirmpassword: {
				required: "<p style='padding:5px;color:red;font-size:11px'>Masukkan Konfirmasi Password</p>",
				minlength: "<p style='padding:5px;color:red;font-size:11px'>Konfirmasi Password Minimal 6 karakter</p>",
				equalTo: "<p style='padding:5px;color:red;font-size:11px'>Masukkan Password yang sama dengan diatas</p>"
			},
			agree: "<p style='padding:5px;color:red;font-size:11px'>Anda harus Menyetujui persyaratan</p>"
		}
	});	
});
<?php }?>
</script>
</head>
<body>
<div id="wraper">
	<div id="header">
		<div class="menu">
			<ul>
				<li><a href="<?php echo base_url().'main/home';?>" class="home">home</a></li>
				<li><a href="<?php echo base_url().'members';?>" class="about">anggota</a></li>
				<li><a href="<?php echo base_url().'groups';?>" class="home">group</a></li>
				<li><a href="<?php echo base_url().'main/about';?>" class="about">about us</a></li>
				<li><a href="<?php echo base_url().'main/help';?>" class="contact">help</a></li>
			</ul>
		</div>
		<div class="logo"><a href="<?php echo base_url().'main/home';?>">	<img src="<?php echo base_url();?>sknimg/images/transp_home.png" border="0" /></a></div>
	</div>
	<div class="skin">
		<div id="content">
		
			<div class="left">
				<?php if(!$isError){?>
					<h1>Form Registras</h1>
					<div class="left2">
					<form id='valForm' name='valForm' method='POST' action='<?php echo base_url()?>engine/register/finishRegister'>
						<table>
							<tr>
								<td width='200' height='50'>NIM :</td>
								<td width='200' height='50'><input size='30' type="text" name="nim" readonly  value="<?php echo $nim ?>"/></td>
								<input size='30' type="hidden" name="uid"  value="<?php echo $uid ?>"/>
							</tr>
							<tr>
								<td height='50'>Nama Lengkap :</td>
								<td height='50' > <input  size='30' type="text" name="nama" readonly  value="<?php echo $namaLengkap ?>"/></td>
							</tr>
							<tr>
								<td height='50' >Username :</td>
								<td height='50'><input  size='30' type="text" id='username' name="username"/></td>
							</tr>
							<tr>
								<td height='50'>Password :</td>
								<td height='50'><input  size='30' type="password" name="password" id='password'/></td>
							</tr>
							<tr>
								<td height='50'>Confirm Password :</td>
								<td height='50'><input  size='30' type="password" name="confirmpassword"/></td>
							</tr>
							<tr>
								<td height='50'>Setuju Penggunaan :</td>
								<td height='50'><input  type="checkbox" name="agree"/></td>
							</tr>
						</table>
						<input type='submit' value='Go'></input>
					</form>
					</div>
					<br class="spacer" />
					<?php }else{?>
					<div class="left2">
						<h1><?php echo $error?> </h1>
						

					</div>
					<?php }?>	
				</div>
		
		</div>
		<div class="right">		
					
	